/*
 * @Description: 
 * @Version: 1.0
 * @Autor: laikt
 * @Date: 2021-01-11 14:33:09
 * @LastEditors: laikt
 * @LastEditTime: 2021-01-11 16:41:48
 */
import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm'

@Entity()
export class Table {
    @PrimaryGeneratedColumn('uuid')
    id: string

    @Column({ comment: 'code' })
    code: string

    @Column({ comment: '字段名' })
    prop: string

    @Column({ comment: '标题' })
    label: string
    
    @Column({default: '', comment: '最小宽度' })
    minWidth: string
    
    @Column({default: '', comment: '宽度' })
    width: string

    @Column({ default: '',comment: '列是否固定' })
    fixed: string

    @Column({ default: 'center',comment: '对齐方式' })
    align: string

    @Column({ default: '',comment: '列的className' })
    className: string

    @Column({ default: '',comment: '当前列标题的自定义类名' })
    labelClassName: string
    
    @Column({ default: true, comment: '是否显示' })
    show: boolean

    @Column({ default: true, comment: '是否可以通过拖动改变宽度（需要在 el-table 上设置 border 属性为真）' })
    resizable: boolean
}
